package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Guard;
import cn.wolfcode.crm.query.GuardQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IGuardService {

    void deleteByPrimaryKey(Long id);

    Guard selectByPrimaryKey(Long id);

    List<Guard> selectAll();

    void saveOrUpdate(Guard entity);

    PageResult query(QueryObject qo);

    void toPending(Long id);

    void beRefused(Long id);

    void unpaid(Long id);

    int updateState(Integer state,Long id);

    Long selectIdByGuardNum(String guardNum);
}
